Repository navigation
fix(console): "customized" means overrides + extensions everywhere; Setup → Packages names arrangements apart - #37351
Conversation
… extensions, names arrangements apart (WIP) Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye Co-authored-by: Claude <noreply@anthropic.com>
…h filters and the Setup detail; changeset Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye Co-authored-by: Claude <noreply@anthropic.com>
…rt from customized Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| # | Mutation | Red |
|---|---|---|
| A1 | Setup detail customized + counts.arrangements |
3 of 13: mixed, en arrangement-only, zh-CN |
| A2 | header gate + arrangements | 1 of 13: header pin |
| A3 | ResourceListPage filter gate + arrangements |
1 of 13: list filter pin |
| A4 | useListOrderedNames gate + arrangements |
1 of 13: ‹ › names pin (its HotCRM control stays green) |
| A5 | drop state.arranged === 0 from the "No changes" test |
2 of 13: en and zh arrangement-only |
| A6 | always draw the arrangement segment | 1 of 13: "no arrangement, no arrangement segment" |
| A7 | customizationTotal itself + arrangements |
7 of 69, across all three files |
A1–A4 reproduce the PR's own ablations. A5–A7 are the seat's own.
DELIBERATE CORRECTION. It is justified, minimal (+1/−1, one sentence) and declared in the PR body with the old and new sentence. The diff changes code, so the confirmation is the same-head TIER_DEFAULT contract-review PASS (references/landing-operations.md). That record is posted beside this one and judges the sentence TRUE clause by clause.
Check Changeset red, accepted as red by design. Job 139509776058 fails only at the step Reject an empty-frontmatter changeset added by this PR. Its error names .changeset/36908-remove-studio-home.md and the DELIBERATE CORRECTION class. The ADR-0087 and major-bump steps are success. All three 〈路径分叉〉 conditions hold:
- (1) The source says the red is by design on the pushed branch.
check-empty-changeset.mjsprints the correction remedy ("the dispatching seat confirms it by its own record").pr-automation.yml(the "Past a designed red" block) names the foreign-changeset refusal on a PR that corrects a note and adds its own as RED BY DESIGN, left standing. - (2) The job does not run on
merge_group:pr-automation.ymltriggers onpull_requestonly, and Check Changeset is not a required context. - (3) This comment names the gate and the reason. No PR comment carried it before this one, because the zone's note 7175439691 is on the card.
i18n.
released-keys-removed.mjsagainst@object-ui/i18n@18.6.0finds the same 77 keys at head as at the merge base, so no released key is removed.engine.packages.customizations.*is absent at the tag.- The new
engine.packages.customizations.arrangedis in both packs thestudionamespace carries (en,zh), with{count}in each. check:i18n-keysis green in the push gates, and Lint UI and Test UI aresuccess.
Clause-②. no is right: app-shell is private, and the studio catalogues are Record<string, string>.
- The card's newest
Claim:(7171285434), the PR body and the new changeset each readClause-②: nothroughreadClause2Line:declared, valueno, no arm. - Each reads
Metadata-protocol: nonethroughreadMetadataProtocolLine. - The claim matches the body.
Skills-docs:is not owed.
Check-runs at head. 58 runs: 44 success, 13 skipped (all expected), 1 failure (Check Changeset, above).
Lint & Repo Gates,TypeScript Type Check,Type Check UI,Lint UI, all 16Test UIshards,Build & E2E UI,Live E2E UI,Dogfood Regression GateandGoverned Surface Queue Guardaresuccess.l1-face.mjs --pr 37351flags only that red.
K = 6, merge-tree clean. The merge base is f339060f, and origin/main is 134b71db. main moved one commit (test(runtime): get_record_context answers one caller with the same bytes on the /mcp and stdio doors over a real kernel #37350) since the zone read K = 5. git merge-tree --write-tree origin/main c9c1d9e4 exits 0, and so does the same check against Version Packages chore: version packages #35129 at 62818bba.
维护者速读. Four lines of Chinese business prose:
- who, where, before and after;
- the topic (Studio 改版) and the one meaning;
- display-only risk, which can be reverted;
- 「无」.
There are no code names, paths, ruling letters or bare card numbers. The example 「已定制 0 项,调整排列 2 处,已停用 0 项」 matches the en pin's two-arrangement fixture and the zh catalogue. Accurate.
N1 — The new changeset says the arrangements are listed "under the section's 「布局」 tab". In English that tab reads "Layouts" (tab.arranged). "the section's Layouts tab (「布局」)" would read right in both languages. This is prose only and needs no new head.
N2 — The os-dev report (7175069802) quotes the zh-CN pin as 「…调整排列 2 处…」. The test pins a one-arrangement fixture, 「已定制 0 项,调整排列 1 处,已停用 0 项」, which the PR body's table states correctly. This is a report wording slip only.
No must-fix, no should-fix.
- Landing. The zone lands it: Tier S, not governed, under 3,000 lines. K = 6 < 15, so no main merge is owed first.
- Post the same-head
TIER_DEFAULTrecord and this comment on the PR, then runpr_ready+automerge_enable. - The DELIBERATE CORRECTION is confirmed by the same-head record. The seat accepts the red-by-design
Check Changeset, so the PR enters the queue carrying it. - On MERGED,
Fixes #37236closes the card. The zone then removespm:dispatchedand the assignee, and leaves anACCEPT → PR #37351 commentpointer line on the card that names this comment's id.
- Post the same-head
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-25T22:06Z · head
|
Fixes #37236
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
PackageCustomizationsPanel.tsx): the 「已定制」 / "customized" count is nowcustomizationTotal(overrides + extensions), the one number the All metadata header and both lists' 「customized」 filter already read. Arrangements are named in their own segment,engine.packages.customizations.arranged(en{count} rearranged, zh-CN调整排列 {count} 处), drawn only when the count is above 0. The "No changes" line now needs all three counts at 0, so an arrangement-only app never reads "No changes".0 customized, 2 rearranged, 0 switched off/已定制 0 项,调整排列 2 处,已停用 0 项.1 customized, 0 switched off.customizationRowsOf) and the 「布局」 tab are unchanged; arrangements are still listed.customizedCountOfis retired, not fixed to delegate. Its only job was the second meaning of 「已定制」. Keeping a second name forcustomizationTotalwould leave two doors to the same number, and the drift this card fixes came in through that second door. Its one caller and its one test go with it.customizationTotalis unchanged, and so are the header (DirectoryPage.tsx) and both filters (ResourceListPage.tsx,useListOrderedNames.ts). They gain pins, not code.engine.packages.customizations.customizedkeeps its text, and it has not been released yet: it arrived with feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's unreleased changeset)..changeset/36908-remove-studio-home.md(unreleased). Its sentence "The count now includes tab, field-group and action-layout arrangements, so an app whose only change is a tab arrangement shows as customized." would ship false after this change. It now reads: "Tab, field-group and action-layout arrangements are named on their own in that line, not counted as customized."Tests
One pin per surface, each on an arrangement-only base fixture (two arrangements, no override, no extension):
PackageCustomizationsPanel.test.tsx: arrangement-only app reads exactly0 customized, 2 rearranged, 0 switched off, both rows listed已定制 0 项,调整排列 1 处,已停用 0 项metadataAreaHost.customizations-28568.test.tsx: nodirectory-customizations-total, no tile, no failure linemetadata-only-customizationson the arrangement-only base's list?customized=1, the ‹ › names keep the row (the filter is not offered), with a HotCRM control that keeps only its customized rowAlso: no arrangement means no arrangement segment, and the mixed fixture now reads
2 customized, 1 rearranged, 1 switched off.Targeted run (head c9c1d9e)
Ablations: each pin red alone when its own surface counts arrangements
Each mutation adds
+ counts.arrangementsat one call site throughscripts/ablation-replace.mjs(anchor x1 → x0, blob changed, restored to the HEAD blob with an emptygit diff HEAD). The tests import source, so there is nodist/leg.Package suite and type-check
Acceptance notes
{count} rearranged, matching the line's other participles ("customized", "switched off") and avoiding "1 arrangements". zh-CN reads the ruling's own调整排列 {count} 处. The new segment uses the line's existing separator (,/,), not the ruling example's·, so the line has one separator.0 customized, as the card asks.Verification
Read first:
PackageCustomizationsPanel.tsx(the summary line), then the newdescribeat the end ofmetadataAreaHost.customizations-28568.test.tsx.Two-minute check: from
ui/,pnpm exec vitest run packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.test.tsx. Expect 13 passed, including "an arrangement-only app reads 0 customized beside its arrangement count".Gates
Derived union (
dispatch-gates.mjs --commands), run on the final head c9c1d9e: 38 derived, 38 run, 0 NOT-MEASURED (--ranreconciliation exit 0).check:changeset-fixed(outside the derivation, run because.changesetholds its roster) exit 0.check-empty-changeset.mjs --base origin/mainrefuses the edit to.changeset/36908-remove-studio-home.md. This is the DELIBERATE CORRECTION declared above, not a collision. The gate stays red until the dispatching seat confirms the correction by its own record.check:test-source-aliasexit 0,check:i18n-keysexit 0,overlap-check.mjsVERDICT clean exit 0,check:nul-bytesexit 0.Generated by Claude Code